package com.mojo.webflux.service;

import com.mojo.webflux.pojo.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * 用户服务接口
 *
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 */
public interface UserService {
    Mono<User> findById(Integer id);

    Flux<User> findAll();

    Mono<Void> add(Mono<User> userMono);
}
